module.exports = {

  onShow() {
    const token = wx.getStorageSync('token')
    if (token) {
      wx.setTabBarItem({
        index: 3,
        text: "我的"
      })
    } else {
      wx.setTabBarItem({
        index: 3,
        text: '未登录'
      })
    }
  }
}